package com.lahuan.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lahuan.demo.entity.Order;
import com.lahuan.demo.mapper.OrderMapper;
import com.lahuan.demo.service.OrderService;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;
/**
* <p>
* 服务实现类
* </p>
* @author lahuan
* @since 2021-12-11
*/
@RequiredArgsConstructor
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    /**
     * 获取QueryWrapper对象
     * @return QueryWrapper对象
     */
    @Override
    public QueryWrapper<Order> getQueryWrapper(){
        return Wrappers.<Order>query();
    }

    /**
     * 获取Lambda形式的Wrapper对象
     * @return Lambda形式的Wrapper对象
     */
    @Override
    public  LambdaQueryWrapper<Order> getLambdaWrapper(){
    return  Wrappers.<Order>lambdaQuery();
    }

}
